import request from '@/utils/request'

// 查询借阅管理列表
export function listBorrowing(query) {
  return request({
    url: '/borrowing/borrowing/list',
    method: 'get',
    params: query
  })
}

// 查询借阅管理详细
export function getBorrowing(borrowId) {
  return request({
    url: '/borrowing/borrowing/' + borrowId,
    method: 'get'
  })
}

// 新增借阅管理
export function addBorrowing(data) {
  return request({
    url: '/borrowing/borrowing',
    method: 'post',
    data: data
  })
}

// 修改借阅管理
export function updateBorrowing(data) {
  return request({
    url: '/borrowing/borrowing',
    method: 'put',
    data: data
  })
}

// 删除借阅管理
export function delBorrowing(borrowId) {
  return request({
    url: '/borrowing/borrowing/' + borrowId,
    method: 'delete'
  })
}
